<div *ngIf="hero"class="car">
  <h3>{{ hero.id}}.{{ hero.brand }}</h3>
  <div >
    <img   src={{hero.pic}} alt={{hero.brand}} > 
  </div>
  <div class="list-group">
    <ul>
      <li>
          <label>汽车编号: </label> {{ hero.id }}
      </li>
      <li>
          <label>汽车品牌: </label>{{ hero.brand }}
      </li>
      <li>
          <label>颜色: </label>{{ hero.color }}
      </li>
      <li>
          <label>座位数: </label>{{ hero.seats }}
      </li>
      <li>
          <label>价格/小时: </label>{{ hero.price }}
      </li>
      <li>
          <label>ownerid </label>{{ hero.ownerId }}
      </li>
    </ul>
    </div>
<div>
  <button (click)="goBack()">返回</button>
  <button (click)="rent()">租车</button>
</div>
</div>

